<template>
  <div class="count">
    <h2 v-red>我是count组件</h2>
    <p v-bgColor="'yellow'">count的值是{{ count }}</p>
    <p v-bgColor="'blue'">电脑的价格是：{{49999 | add$}}</p>
    <button @click="addCount()">累加</button>
  </div>
</template>

<script>
export default {
  props: ["addCount", "count"],
  data() {
    return {
      price: 49999,
    };
  },
};
</script>

<style scoped>
.count {
  background-color: pink;
}
</style>